/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Administrator
 * Date: 2024-03-03
 * Time: 20:21
 */
import java.util.Random;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Administrator
 * Date: 2024-03-03
 * Time: 12:49
 */

/*public class Test2 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        Random random = new Random();
        int randNum = random.nextInt(101);
        while (true) {
            System.out.print("请输入你要猜的数字：");
            int num = scan.nextInt();
            if(num > randNum){
                System.out.println("猜大了");
            } else if (num == randNum) {
                System.out.println("恭喜你，猜对了");
                break;
            } else {
                System.out.println("猜小了");
            }
        }
    }
}*/

